gridpack::state_estimation::SEBranch Class Reference
#include <se_components.hpp>
List of all members.
Public Member Functions |
| SEBranch (void) |
| ~SEBranch (void) |
bool | matrixForwardSize (int *isize, int *jsize) const |
bool | matrixReverseSize (int *isize, int *jsize) const |
bool | matrixForwardValues (ComplexType *values) |
bool | matrixReverseValues (ComplexType *values) |
void | setYBus (void) |
gridpack::ComplexType | getYBus (void) |
void | load (const boost::shared_ptr< gridpack::component::DataCollection > &data) |
gridpack::ComplexType | getAdmittance (void) |
gridpack::ComplexType | getTransformer (SEBus *bus) |
gridpack::ComplexType | getShunt (SEBus *bus) |
void | setMode (int mode) |
bool | serialWrite (char *string, const int bufsize, const char *signal=NULL) |
gridpack::ComplexType | getComplexPower (std::string tag) |
gridpack::ComplexType | getRvrsComplexPower (std::string tag) |
void | addMeasurement (Measurement measurement) |
void | sortMeasurements (void) |
void | getVTheta (gridpack::state_estimation::SEBus *bus, double *v, double *theta) |
void | getV1V2Theta (gridpack::state_estimation::SEBranch *branch, double *v1, double *v2, double *theta) |
void | getPQ (SEBus *bus, double *p, double *q) |
int | matrixNumRows () const |
int | matrixNumCols () const |
void | matrixSetRowIndex (int irow, int idx) |
void | matrixSetColIndex (int icol, int idx) |
int | matrixGetRowIndex (int idx) |
int | matrixGetColIndex (int idx) |
int | matrixNumValues () const |
void | matrixGetValues (ComplexType *values, int *rows, int *cols) |
int | vectorNumElements () const |
void | vectorSetElementIndex (int ielem, int idx) |
void | vectorGetElementIndices (int *idx) |
void | vectorGetElementValues (ComplexType *values, int *idx) |
void | vectorSetElementValues (ComplexType *values) |
void | configureSE (void) |
Constructor & Destructor Documentation
gridpack::state_estimation::SEBranch::SEBranch |
( |
void |
|
) |
|
gridpack::state_estimation::SEBranch::~SEBranch |
( |
void |
|
) |
|
Member Function Documentation
void gridpack::state_estimation::SEBranch::addMeasurement |
( |
Measurement |
measurement |
) |
|
Add a measurement to the branch
- Parameters:
-
| measurement | a measurement struct that will be used to assign internal paramters |
void gridpack::state_estimation::SEBranch::configureSE |
( |
void |
|
) |
|
Configure branches with state estimation parameters. These can be used in other methods
Return complex power for line element
- Parameters:
-
| tag | describing line element on branch |
- Returns:
- complex power
void gridpack::state_estimation::SEBranch::getPQ |
( |
SEBus * |
bus, |
|
|
double * |
p, |
|
|
double * |
q | |
|
) |
| | |
Return contribution to constraints
- Parameters:
-
| p,: | real part of constraint |
| q,: | imaginary part of constraint |
Return complex power for line element at to end
- Parameters:
-
| tag | describing line element on branch |
- Returns:
- complex power
Return the contribution to a bus from shunts
- Parameters:
-
| bus,: | pointer to the bus making the call |
- Returns:
- : contribution to Y matrix from shunts associated with branches
Return transformer contribution from the branch to the calling bus
- Parameters:
-
| bus,: | pointer to the bus making the call |
- Returns:
- : contribution from transformers to Y matrix
Return contribution to constraints
- Parameters:
-
| v1,v2,: | voltages at buses |
| theta,: | angle difference between two buses |
Return contribution to constraints
- Parameters:
-
| v,: | voltage at the other bus |
| theta,: | angle difference between two buses |
Get values of YBus matrix. These can then be used in subsequent calculations
Load values stored in DataCollection object into SEBranch object. The DataCollection object will have been filled when the network was created from an external configuration file
- Parameters:
-
| data,: | DataCollection object contain parameters relevant to this branch that were read in when network was initialized |
Reimplemented from gridpack::ymatrix::YMBranch.
bool gridpack::state_estimation::SEBranch::matrixForwardSize |
( |
int * |
isize, |
|
|
int * |
jsize | |
|
) |
| | const [virtual] |
Return size of off-diagonal matrix block contributed by the component for the forward/reverse directions
- Parameters:
-
| isize,jsize,: | number of rows and columns of matrix block |
- Returns:
- : false if network component does not contribute matrix element
Reimplemented from gridpack::ymatrix::YMBranch.
bool gridpack::state_estimation::SEBranch::matrixForwardValues |
( |
ComplexType * |
values |
) |
[virtual] |
Return the values of the forward/reverse matrix block. The values are returned in row-major order
- Parameters:
-
| values,: | pointer to matrix block values |
- Returns:
- : false if network component does not contribute matrix element
Reimplemented from gridpack::ymatrix::YMBranch.
int gridpack::state_estimation::SEBranch::matrixGetColIndex |
( |
int |
idx |
) |
[virtual] |
int gridpack::state_estimation::SEBranch::matrixGetRowIndex |
( |
int |
idx |
) |
[virtual] |
void gridpack::state_estimation::SEBranch::matrixGetValues |
( |
ComplexType * |
values, |
|
|
int * |
rows, |
|
|
int * |
cols | |
|
) |
| | [virtual] |
Return values from a matrix block
- Parameters:
-
| values,: | pointer to matrix block values |
| rows,: | pointer to matrix block rows |
| cols,: | pointer to matrix block cols |
Reimplemented from gridpack::component::GenMatVecInterface.
int gridpack::state_estimation::SEBranch::matrixNumCols |
( |
|
) |
const [virtual] |
int gridpack::state_estimation::SEBranch::matrixNumRows |
( |
|
) |
const [virtual] |
int gridpack::state_estimation::SEBranch::matrixNumValues |
( |
|
) |
const [virtual] |
bool gridpack::state_estimation::SEBranch::matrixReverseSize |
( |
int * |
isize, |
|
|
int * |
jsize | |
|
) |
| | const [virtual] |
Return size of off-diagonal matrix block contributed by component. The values are for the reverse direction.
- Parameters:
-
| isize,jsize | number of rows and columns of matrix block |
- Returns:
- false if network component does not contribute matrix element
Reimplemented from gridpack::ymatrix::YMBranch.
bool gridpack::state_estimation::SEBranch::matrixReverseValues |
( |
ComplexType * |
values |
) |
[virtual] |
Return the values for an off-diagonl matrix block. The values are for the reverse direction and are returned in row-major order.
- Parameters:
-
| values | pointer to matrix block values |
- Returns:
- false if network component does not contribute matrix element
Reimplemented from gridpack::ymatrix::YMBranch.
void gridpack::state_estimation::SEBranch::matrixSetColIndex |
( |
int |
icol, |
|
|
int |
idx | |
|
) |
| | [virtual] |
void gridpack::state_estimation::SEBranch::matrixSetRowIndex |
( |
int |
irow, |
|
|
int |
idx | |
|
) |
| | [virtual] |
bool gridpack::state_estimation::SEBranch::serialWrite |
( |
char * |
string, |
|
|
const int |
bufsize, |
|
|
const char * |
signal = NULL | |
|
) |
| | [virtual] |
Write output from branches to standard out
- Parameters:
-
| string | (output) string with information to be printed out |
| bufsize | size of string buffer in bytes |
| signal | an optional character string to signal to this routine what about kind of information to write |
- Returns:
- true if branch is contributing string to output, false otherwise
Reimplemented from gridpack::component::BaseComponent.
void gridpack::state_estimation::SEBranch::setMode |
( |
int |
mode |
) |
[virtual] |
Set the mode to control what matrices and vectors are built when using the mapper
- Parameters:
-
| mode,: | enumerated constant for different modes |
Reimplemented from gridpack::ymatrix::YMBranch.
void gridpack::state_estimation::SEBranch::setYBus |
( |
void |
|
) |
|
void gridpack::state_estimation::SEBranch::sortMeasurements |
( |
void |
|
) |
|
Sort measurements so that they are in a consistent order
void gridpack::state_estimation::SEBranch::vectorGetElementIndices |
( |
int * |
idx |
) |
[virtual] |
void gridpack::state_estimation::SEBranch::vectorGetElementValues |
( |
ComplexType * |
values, |
|
|
int * |
idx | |
|
) |
| | [virtual] |
int gridpack::state_estimation::SEBranch::vectorNumElements |
( |
|
) |
const [virtual] |
void gridpack::state_estimation::SEBranch::vectorSetElementIndex |
( |
int |
ielem, |
|
|
int |
idx | |
|
) |
| | [virtual] |
void gridpack::state_estimation::SEBranch::vectorSetElementValues |
( |
ComplexType * |
values |
) |
[virtual] |
The documentation for this class was generated from the following file: